home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / util / comm / arapp144.sit / Practical 14400FXSA-no retrain < prev    next >
Encoding:
Text File  |  1992-08-06  |  5.2 KB  |  258 lines

  1. ! "Practical Peripherals PM14400FXSA- no retrain - 8/6/92"
  2. !  by SBM  CompuServe ID: 72711,2044 (daily) or 74435,357 (occasional)
  3. !          GENIE: S.MEUSE2 (occasional)
  4. !          AppleLink: CYTYC.DEV (daily)
  5. !          Internet: 72711.2044@compuserve.com
  6. !
  7. ! Non-commercial distribution of non-beta versions is encouraged provided
  8. ! the files are unmodified and all files are included in the distribution.
  9. ! Please report any problems.  Thanks!
  10. !
  11. ! This script REQUIRES a hardware handshaking cable.  Practical Peripherals
  12. ! and MacConnection sell ones known to work correctly.
  13. !
  14. ! revision history
  15. ! 1.0B1- 5/8/92-
  16. !    Initial beta release. Uploaded to CompuServe's PPIFORUM only.
  17. ! 1.0B2- 6/23/92-
  18. !    Not released. Local testing only.
  19. !    Ñ Fixed bug where script wasn't respecting the modem's CS line.
  20. !    Ñ Looking into bugs reported with this script at both ends @ 14400bps.
  21. !      I did duplicate this, and it appears to be due to an acknowledged
  22. !      incompatibility between ARA 1.0 and Apple Internet Router 2.0.
  23. ! 1.0B3- 7/6/92-
  24. !    Released via email to a few beta sites for testing only.
  25. ! 1.0B4- 7/10/92-
  26. !    Second general beta release. Uploaded to CompuServe's PPIFORUM only.
  27. ! 1.0B4, "no retrain"- 7/10/92-
  28. !    added &B0 and S110=1.
  29. ! 1.0B5- 7/28/92-
  30. !    local testing only.  Wait 90 seconds after dial for carrier.
  31. ! 1.0- 8/6/92-
  32. !    Initial general release.  Uploaded to PPIFORUM, MACCOM, GEnie, & the PPI BBS.
  33. !
  34. @ORIGINATE
  35. @ANSWER
  36. !
  37. @LABEL 1
  38. serreset 19200, 0, 8, 1
  39. !
  40. ! first recall the factory configuration
  41. !
  42. matchclr
  43. settries 0
  44. matchstr 1 3 "OK\13\10"
  45. @LABEL 2
  46. write "AT&F\13"
  47. matchread 30
  48. inctries
  49. iftries 2 59
  50. jump 2
  51. !
  52. ! then echo off, DTR off, enable the modem's RTS/CTS flow control
  53. @LABEL 3
  54. matchclr
  55. matchstr 1 4 "OK\13\10"
  56. write "ATE0&C1&D0&K3\13"
  57. matchread 30
  58. jump 59
  59. !
  60. ! then turn off error correction, use autospeed buffering,
  61. ! turn off V.32 auto retrain,
  62. ! configure CONNECT messages to report DCE speed instead of DTE
  63. ! allow 90 seconds for a successful connection (up from 50).
  64. !
  65. @LABEL 4
  66. matchclr
  67. matchstr 1 5 "OK\13\10"
  68. matchstr 2 5 "ERROR\13\10"
  69. write "AT&Q6&B0S110=1W2S7=90\13"
  70. matchread 30
  71. !
  72. ! If speaker on flag is true, jump to label 8.  Else turn off the speaker
  73. @LABEL 5
  74. ifstr 2 8 "1"
  75. matchclr
  76. matchstr 1 8 "OK\13\10"
  77. write "ATM0\13"
  78. matchread 30
  79. jump 59
  80. !
  81. ! The modem is ready.  So enable answering, or originate a call
  82. !
  83. @LABEL 8
  84. ifANSWER 30
  85. note "Dialing ^1" 3
  86. write "ATS0=0DT^1\13"
  87. !
  88. @LABEL 9
  89. matchclr
  90. matchstr  1 11 "CONNECT 1200\13\10"
  91. matchstr  2 12 "CONNECT 2400\13\10"
  92. matchstr  3 13 "CONNECT 4800\13\10"
  93. matchstr  4 14 "CONNECT 7200\13\10"
  94. matchstr  5 15 "CONNECT 9600\13\10"
  95. matchstr  6 16 "CONNECT 12000\13\10"
  96. matchstr  7 17 "CONNECT 14400\13\10"
  97. matchstr  8 18 "CONNECT 19200\13\10"
  98. matchstr  9 50 "NO CARRIER\13\10"
  99. matchstr 10 50 "ERROR\13\10"
  100. matchstr 11 52 "NO DIALTONE\13\10"
  101. matchstr 12 53 "BUSY\13\10"
  102. matchstr 13 54 "NO ANSWER\13\10"
  103. matchread 999
  104. jump 59
  105. !
  106. @LABEL 11
  107. note "Communicating at 1200 bps." 2
  108. CommunicatingAt 1200
  109. jump 19
  110. !
  111. @LABEL 12
  112. note "Communicating at 2400 bps." 2
  113. CommunicatingAt 2400
  114. jump 19
  115. !
  116. @LABEL 13
  117. note "Communicating at 4800 bps." 2
  118. CommunicatingAt 4800
  119. jump 19
  120. !
  121. @LABEL 14
  122. note "Communicating at 7200 bps." 2
  123. CommunicatingAt 7200
  124. jump 19
  125. !
  126. @LABEL 15
  127. note "Communicating at 9600 bps." 2
  128. CommunicatingAt 9600
  129. jump 19
  130. !
  131. @LABEL 16
  132. note "Communicating at 12 kbps." 2
  133. CommunicatingAt 12000
  134. jump 19
  135. !
  136. @LABEL 17
  137. note "Communicating at 14.4 kbps." 2
  138. CommunicatingAt 14400
  139. jump 19
  140. !
  141. @LABEL 18
  142. note "Communicating at 19.2 kbps." 2
  143. CommunicatingAt 19200
  144. !
  145. ! enable RTS/CTS handshaking at the serial port
  146. !
  147. @LABEL 19
  148. HSReset 0 1 0 0 0 0
  149. ifANSWER 20
  150. pause 30
  151. @LABEL 20
  152. exit 0
  153. !
  154. ! @ANSWER
  155. ! Set up modem to answer
  156. @LABEL 30
  157. matchclr
  158. matchstr 1 31 "OK\13\10"
  159. write "ATS0=1\13"
  160. matchread 30
  161. jump 59
  162. !
  163. @LABEL 31
  164. matchclr
  165. matchstr  1 32 "RING\13\10"
  166. matchstr  2 11 "CONNECT 1200\13\10"
  167. matchstr  3 12 "CONNECT 2400\13\10"
  168. matchstr  4 13 "CONNECT 4800\13\10"
  169. matchstr  5 14 "CONNECT 7200\13\10"
  170. matchstr  6 15 "CONNECT 9600\13\10"
  171. matchstr  7 16 "CONNECT 12000\13\10"
  172. matchstr  8 17 "CONNECT 14400\13\10"
  173. matchstr  9 18 "CONNECT 19200\13\10"
  174. matchstr 10 50 "NO CARRIER\13\10"
  175. matchstr 11 50 "ERROR\13\10"
  176. matchstr 12 52 "NO DIALTONE\13\10"
  177. matchstr 13 53 "BUSY\13\10"
  178. matchstr 14 54 "NO ANSWER\13\10"
  179. matchread 700
  180. jump 31
  181. !
  182. @LABEL 32
  183. userhook 1
  184. note "Answering phone╔" 2
  185. jump 31
  186. !
  187. ! 50: error messages
  188. !
  189. @LABEL 50
  190. exit -6021
  191. !
  192. @LABEL 52
  193. exit -6020
  194. !
  195. @LABEL 53
  196. exit -6022
  197. !
  198. @LABEL 54
  199. exit -6023
  200. !
  201. @LABEL 59
  202. exit -6019
  203. !
  204. ! turn off RTS/CTS at serial port, hang up the modem
  205. !
  206. @HANGUP
  207. @LABEL 60
  208. HSReset 0 0 0 0 0 0
  209. settries 0
  210. @LABEL 61
  211. matchclr
  212. matchstr 1 64 "OK\13\10"
  213. matchstr 2 63 "NO CARRIER\13\10"
  214. matchstr 3 64 "ERROR\13\10"
  215. write "ATH0\13"
  216. matchread 15
  217. inctries
  218. iftries 3 64
  219. ! no response, try escape sequence
  220. matchclr
  221. matchstr 1 62 "OK\13\10"
  222. matchstr 2 63 "NO CARRIER\13\10"
  223. write "+++"
  224. matchread 18
  225. ! No response from modem, try reset command
  226. write "ATZ\13"
  227. pause 30
  228. jump 61
  229. !
  230. @LABEL 62
  231. matchclr
  232. matchstr 1 64 "OK\13\10"
  233. matchstr 2 63 "NO CARRIER\13\10"
  234. write "ATH0\13"
  235. matchread 50
  236. jump 61
  237. !
  238. @LABEL 63
  239. pause 45
  240. flush
  241. !
  242. ! recall the factory settings
  243. !
  244. @LABEL 64
  245. matchclr
  246. matchstr 1 65 "OK\13\10"
  247. write "AT&F\13"
  248. matchread 30
  249. !
  250. @LABEL 65
  251. matchclr
  252. matchstr 1 66 "OK\13\10"
  253. write "ATS0=0\13"
  254. matchread 30
  255. !
  256. @LABEL 66
  257. exit 0
  258.